#@layout()
#define main()

<!-- BEGIN WRAPPER  -->
<section class="wrapper site-min-height">
    <section class="panel">
        <header class="panel-heading">
            <span class="label label-primary">厂家管理#(msg??) </span>
            <span class="tools pull-right">
                     <a href="javascript:;" class="fa fa-chevron-down"></a>
                     <a href="javascript:;" class="fa fa-times"></a>
                     </span>
        </header>
        <div class="panel-body">
            <div class="adv-table editable-table ">
                <div class="clearfix">
                    <div class="btn-group">
                        <a  class="btn btn-success green"  href="#(cxt)/company/add">
                           新增 <i class="fa fa-plus"></i>
                        </a>

                    </div>
                    <div class="btn-group pull-right">
                        <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Tools <i
                                class="fa fa-angle-down"></i>
                        </button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="#">Print</a></li>
                            <li><a href="#">Save as PDF</a></li>
                            <li><a href="#">Export to Excel</a></li>
                        </ul>
                    </div>
                </div>
                <div class="space15"></div>
                <table class="table table-striped table-hover table-bordered" id="editable-sample">
                    <thead>
                    <tr>
                        <th>厂家编号</th>
                        <th class="hidden-phone">厂家名称</th>
                        <th class="hidden-phone">厂家地址</th>
                        <th class="hidden-phone">创建者</th>
                        <th class="hidden-phone">创建时间</th>
                        <th>编辑</th>
                        <th>删除</th>
                    </tr>
                    </thead>
                    <tbody>
                    #for(x : pageList.getList())
                    <tr class="">
                        <td>#(x.id??)</td>
                        <td class="hidden-phone">#(x.cname??)</td>
                        <td class="hidden-phone">#(x.cdress??)</td>
                        <td class="center hidden-phone">#(x.username??)</td>
                        <td class="center hidden-phone">#(x.createtime??)</td>
                        <td><a class="edit" href="#(cxt)/company/edit/#(x.id)"><span class="label label-success">Edit</span></a></td>
                        <td><a class="delete" href="#(cxt)/company/delete/#(x.id)"><span class="label label-danger">Delete</span></a>
                        </td>
                    </tr>
                    #end
                    </tbody>
                </table>
            </div>
        </div>
    </section>
</section>
<!--<script src="#(cxt)/js/editable-table.js"></script>&lt;!&ndash; EDITABLE TABLE JS  &ndash;&gt;-->
<!-- END WRAPPER  -->
#end